package ru.spb.nicetu.altx.mnemo.node.factory;

import java.util.ArrayList;

import ru.spb.nicetu.altx.mnemo.node.BaseNode;
import ru.spb.nicetu.altx.mnemo.node.INode;

public class NodeFactory extends ANodeFactory {

  protected ArrayList<String> categories = new ArrayList<String>();
  
  protected INode createNode(String name) {
    return new BaseNode(name);
  }

  @Override
  public void addCategory(String category) {
    categories.add(category);
  }

  @Override
  public void removeCategory(String category) {
    categories.remove(category);    
  }

  @Override
  public ArrayList<String> getCategories() {
    return categories;
  }
}
